import request from '@/utils/request'

/**
* 记录工件加工过程的详细信息分页查询
* @param {查询条件} data
*/
export function listCksProductionRecord(query) {
  return request({
    url: 'business/CksProductionRecord/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增记录工件加工过程的详细信息
* @param data
*/
export function addCksProductionRecord(data) {
  return request({
    url: 'business/CksProductionRecord',
    method: 'post',
    data: data,
  })
}
/**
* 修改记录工件加工过程的详细信息
* @param data
*/
export function updateCksProductionRecord(data) {
  return request({
    url: 'business/CksProductionRecord',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取记录工件加工过程的详细信息详情
* @param {Id}
*/
export function getCksProductionRecord(id) {
  return request({
    url: 'business/CksProductionRecord/' + id,
    method: 'get'
  })
}

/**
* 删除记录工件加工过程的详细信息
* @param {主键} pid
*/
export function delCksProductionRecord(pid) {
  return request({
    url: 'business/CksProductionRecord/delete/' + pid,
    method: 'delete'
  })
}
